/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bloque3;

import java.util.Scanner;

/**
 *
 * @author Christian
 */
public class ejercicio13 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner teclado=new Scanner(System.in);
        String cad;
        
        int n;
        int factorial=1;
        int cont=1;
       
        System.out.println("Dime el numero");
        cad=teclado.nextLine();
        n=Integer.parseInt(cad);
       do{ 
        factorial=factorial*cont;
        cont++;
       }
       while(cont<=n);{
        System.out.println("El factorial es "+factorial);
        
    }
       
        
       
        
      
        
    }
}
